<template>
  <!-- <div class="app-container">
    <Index :url="URL.gasSupply" :type="TYPE.gasSupply" />
  </div> -->
  <CurrentTask :url="URL.gasSupply" :type="TYPE.gasSupply">
    <template #default="{ activeTab, seismicInput, seismicInputValue }">
      <template v-if="sourceData[TYPE.gasSupply].checkboxData[0].value == activeTab">
        <el-table-column label="储气罐编码" prop="extends1" align="center"></el-table-column>
        <el-table-column label="储气罐名称" prop="extends2" align="center"></el-table-column>
        <el-table-column label="经度" prop="longitude" align="center"></el-table-column>
        <el-table-column label="纬度" prop="latitude" align="center"></el-table-column>
        <el-table-column label="型号" prop="extends3" align="center"></el-table-column>
        <el-table-column label="公称容积" prop="extends4" align="center"></el-table-column>
        <el-table-column label="工作压力" prop="extends5" align="center"></el-table-column>
        <el-table-column label="破坏状态" :prop="getFieldName(seismicInput, seismicInputValue, 'disasterRate', 'State')" align="center"></el-table-column>
        <el-table-column label="破坏状态修正值" :prop="getFieldName(seismicInput, seismicInputValue, 'disasterRate', 'StateCorrection')" align="center"></el-table-column>
        <el-table-column label="失效等级" :prop="getFieldName(seismicInput, seismicInputValue, 'functionalFailure')" align="center"/>
        <el-table-column label="失效等级修正值" :prop="getFieldName(seismicInput, seismicInputValue, 'functionalFailure', 'Correct')" align="center"/>
      </template>
      <template v-if="sourceData[TYPE.gasSupply].checkboxData[1].value == activeTab">
        <el-table-column label="建筑物序号" prop="extends1" align="center"></el-table-column>
        <el-table-column label="燃气-门站/场站名称" prop="extends2" align="center"></el-table-column>
        <el-table-column label="结构类型" prop="extends3" align="center"></el-table-column>
        <el-table-column label="破坏状态" :prop="getFieldName(seismicInput, seismicInputValue, 'disasterRate', 'State')" align="center"></el-table-column>
        <el-table-column label="破坏状态修正值" :prop="getFieldName(seismicInput, seismicInputValue, 'disasterRate', 'StateCorrection')" align="center"></el-table-column>
        <el-table-column label="失效等级" :prop="getFieldName(seismicInput, seismicInputValue, 'functionalFailure')" align="center"/>
        <el-table-column label="失效等级修正值" :prop="getFieldName(seismicInput, seismicInputValue, 'functionalFailure', 'Correct')" align="center"/>
      </template>
      <template v-if="sourceData[TYPE.gasSupply].checkboxData[2].value == activeTab">
        <el-table-column label="管道编码" prop="extends1" align="center"></el-table-column>
        <el-table-column label="管道名称" prop="extends2" align="center"></el-table-column>
        <el-table-column label="管道类型" prop="extends3" align="center"></el-table-column>
        <el-table-column label="起点编号" prop="extends4" align="center"></el-table-column>
        <el-table-column label="终点编号" prop="extends5" align="center"></el-table-column>
        <el-table-column label="破坏状态" :prop="getFieldName(seismicInput, seismicInputValue, 'disasterRate', 'State')" align="center"></el-table-column>
        <el-table-column label="破坏状态修正值" :prop="getFieldName(seismicInput, seismicInputValue, 'disasterRate', 'StateCorrection')" align="center"></el-table-column>
        <el-table-column label="失效等级" :prop="getFieldName(seismicInput, seismicInputValue, 'functionalFailure')" align="center"/>
        <el-table-column label="失效等级修正值" :prop="getFieldName(seismicInput, seismicInputValue, 'functionalFailure', 'Correct')" align="center"/>
      </template>
    </template>
  </CurrentTask>
</template>
<script setup name="GasSupply">
// import Index from '@/views/lifelineProject/components/index'
import { URL, TYPE, sourceData, getFieldName } from '@/views/lifelineProject/index'
import CurrentTask from '@/views/lifelineProject/components/currentTask.vue'
</script>